package com.guge.sports.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author testjava
 * @since 2022-09-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="StStudent对象", description="")
public class StStudent extends Model<StStudent> implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @ExcelIgnore
    @TableId(value = "stid", type = IdType.ID_WORKER_STR)
    private Long stid;

    @ApiModelProperty(value = "班级id")
    @ExcelProperty(value = "班级编号", index = 0)
    private Long classId;

    @ApiModelProperty(value = "学生姓名")
    @ExcelProperty(value = "学生姓名", index = 1)
    private String sname;

    @ApiModelProperty(value = "学号")
    @ExcelProperty(value = "学生学号", index = 2)
    private String sno;

    @ApiModelProperty(value = "性别 1.男 0.女")
    @ExcelProperty(value = "性别 1.男 0.女", index = 3)
    private Integer sex;

    @ApiModelProperty(value = "学生电话")
    @ExcelProperty(value = "学生电话", index = 4)
    private String phone;

    @ApiModelProperty(value = "认证状态 0.未认证 1.已认证")
    @ExcelProperty(value = "认证状态 0.未认证 1.已认证", index = 5)
    private Integer state;

    @ApiModelProperty(value = "认证时间")
    @ExcelProperty(value = "学生认证时间", index = 6)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern ="yyyy-MM-dd",timezone = "GMT+8")
    private Date stateTime;

    @ApiModelProperty(value = "入学年份")
    @ExcelProperty(value = "入学年份", index = 7)
    @DateTimeFormat(pattern = "yyyy")
    @JsonFormat(pattern ="yyyy",timezone = "GMT+8")
    private Date goschoolYear;

    @ApiModelProperty(value = "入学年份状态 1.未毕业2.已毕业")
    @ExcelProperty(value = "入学年份状态 1.未毕业 2.已毕业", index = 8)
    private Integer goschoolYearState;

    @ApiModelProperty(value = "乐观锁")
    @ExcelIgnore
    private Integer version;

    @ApiModelProperty(value = "创建时间")
    @ExcelProperty(value = "创建时间", index = 9)
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @ExcelProperty(value = "更新时间", index = 10)
    private Date updateTime;

}
